﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/* Author: Paweł Iżycki */
namespace SGGWElevator
{
    // Singleton
    public class Configuration
    {
        #region Singleton Instance

        private static Configuration _instance;

        public static Configuration Instance
        {
            get
            {
                if (_instance == null)
                    _instance = new Configuration();

                return _instance;
            }
        }

        #endregion

        /// <summary>
        /// 
        /// </summary>
        public const long OPENING_DOOR_DURATION = 1000L;

        /// <summary>
        /// 
        /// </summary>
        public const long CLOSING_DOOR_DURATION = 1000L;

        /// <summary>
        /// 
        /// </summary>
        public const long CABIN_POSITION_UPDATE_INTERVAL = 30L;

        /// <summary>
        /// 
        /// </summary>
        public const int FLOOR_HEIGHT = 85;

        /// <summary>
        /// 
        /// </summary>
        public const int CABIN_HEIGHT = 85;

        /// <summary>
        /// 
        /// </summary>
        public const double CALCULATING_FLOOR_PRECISION = 0.001;
    }
}
